from django.db import models

class Article(models.Model):
    title = models.CharField(max_length=200)
#   author = models. blabla
    date = models.DateTimeField("date")
    text = models.TextField(max_length=200000)
    public = models.BooleanField()


    def __unicode__(self):
        return self.title

class Comment(models.Model):
    article = models.ForeignKey(Article)
    name = models.CharField(max_length=20)
    contact = models.CharField(max_length=150)
    text = models.TextField(max_length=2000)

    def __unicode__(self):
        return self.name